﻿using System;
using System.Web;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using AnyOffice.Components;
using AnyOffice.DAL;
using AnyOffice.Model;
namespace AnyOffice.general.system.user_priv
{
    public partial class _new : ModulePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.Page.IsPostBack)
            {
                UserPrivDao dao = new UserPrivDao();
                UserPrivData data = new UserPrivData();
                data.PrivNo = Convert.ToInt32(this.txtPrivNo.Text);
                data.PrivName = this.txtPrivName.Text;
                dao.Insert(base.Conn, data);
                this.pnlMain.Visible = false;
                this.lblMessage.Text = base.ShowPrompt("新建角色成功!", "index.aspx");
            }
        }
    }
}
